package com.zoffy.ybuhelper.dao;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import com.zoffy.ybuhelper.pojo.entity.MenuCategory;

@Dao
public interface MenuCategoryDao {
    @Insert(onConflict=OnConflictStrategy.REPLACE)
    void insert(MenuCategory... menuCategories);
    @Query("Delete from menu_category where menu_id=:id")
    void deleteByMenuId(Integer id);

}
